<form role="form" class="form-inline clearfix" style="margin-bottom: 20px">
    <div class="form-group has-feedback">
        <input class="form-control" ng-model="search.keyword" placeholder="关键字...">
        <div class="form-control-feedback text-muted">
            <i class="glyphicon glyphicon-search"></i>
        </div>
    </div>
    <div class="pull-right">
        <button class="btn btn-primary" ng-click="vm.add()">
            <i class="glyphicon glyphicon-plus"></i>
            添加
        </button>
        <button class="btn btn-default" ng-click="vm.fire()">
            <i class="glyphicon glyphicon-fire"></i>
            更新数据库
        </button>
    </div>
</form>
<div class="row" ng-init="vm.load()">
    <div class="col-md-4" ng-repeat="row in list">
        <div class="panel panel-default">
            <div class="panel-body">
                <div>
                    <strong>{{row.properties.remark && row.properties.remark.length>0 ? row.properties.remark : row.properties.name}}</strong>
                </div>
                <hr>
                <div class="pull-right">
                    <div class="btn-group">
                        <button class="btn btn-default" ng-click="vm.edit(row)">
                            <i class="glyphicon glyphicon-edit"></i>
                            基本信息
                        </button>
                        <button class="btn btn-default" ng-click="vm.columns(row)">
                            <i class="glyphicon glyphicon-th-list"></i>
                            列管理
                        </button>
                    </div>
                    <button class="btn btn-danger" ng-click="vm.drop(row)">
                        <i class="glyphicon glyphicon-trash"></i>
                        删除
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>